In our game, we want objects to fall through the floor if the player doesn't catch them.

  • Go to drag out Disable Floor.
  • We don't want our sprite to fall, so also drag out Sprite Gravity Off.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("schoolhallway") sprite = codesters.Sprite("person8") stage.set_gravity(4)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)